<?php /* Smarty version 2.6.18, created on 2008-05-20 19:46:23
         compiled from event.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_select_date', 'event.tpl', 345, false),)), $this); ?>
      <?php if ($this->_tpl_vars['action'] == 'index' || $this->_tpl_vars['action'] == 'search' || $this->_tpl_vars['action'] == 'show' || $this->_tpl_vars['action'] == 'inforss'): ?>
      <div style="width:300px;border:1px solid black;padding:5px;float:right;margin-bottom:5px;">
         <?php echo $this->_tpl_vars['lang']['rss_banner']; ?>
<a href="/index.php?c=event&amp;a=inforss"><?php echo $this->_tpl_vars['lang']['rss_banner_link']; ?>
</a>
      </div>

      <?php echo '
      <script type="text/javascript">
         function sendForm() {
            var when = document.getElementById(\'select_when\').value;
            if (when != "") {
               document.location = \'/index.php?c=event&a=search&when=\'+when;
            }
            var where = document.getElementById(\'select_where\').value;
            if(where != "") {
               document.location = \'/index.php?c=event&a=search&where=\'+where;
            }
         }
      </script>
      '; ?>


      <h2><?php echo $this->_tpl_vars['lang']['what_to_do']; ?>
</h2>
      <div style="clear:right;padding:5px;height:100px;border:1px solid black;">
         <div style="float:left;height:100px;padding-right:5px;">
            <h3><?php echo $this->_tpl_vars['lang']['where']; ?>
</h3>
            <select id="select_where" onchange="sendForm();">
               <option value=""><?php echo $this->_tpl_vars['lang']['regions']; ?>
</option>
               <option value="">&nbsp;</option>
               <?php $_from = $this->_tpl_vars['regions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['region']):
?>
               <option value="<?php echo $this->_tpl_vars['region']->getId(); ?>
"><?php echo $this->_tpl_vars['region']->getName(); ?>
</li>
               <?php endforeach; endif; unset($_from); ?>
            </select>
         </div>

         <div style="float:left;border-left:1px solid black;height:100px;padding:0 5px 0 5px;">
            <h3><?php echo $this->_tpl_vars['lang']['when']; ?>
</h3>
            <select id="select_when" onchange="sendForm();">
               <option value=""><?php echo $this->_tpl_vars['lang']['select_date']; ?>
</option>
               <option value="">&nbsp;</option>
               <option value="week"><?php echo $this->_tpl_vars['lang']['this_week']; ?>
</option>
               <option value="t_month"><?php echo $this->_tpl_vars['lang']['this_month']; ?>
</option>
               <option value="n_month"><?php echo $this->_tpl_vars['lang']['next_month']; ?>
</option>
               <option value="o_month"><?php echo $this->_tpl_vars['lang']['others_months']; ?>
</option>
            </select><br />
            <!-- Calendario para buscar por día -->
         </div>

         <div style="float:left;border-left:1px solid black;height:100px;padding-left:5px;">
            <a href="/index.php?c=event&amp;a=create"><?php echo $this->_tpl_vars['lang']['add_event']; ?>
</a>
         </div>
      </div>

      <div style="float:right;padding:5px;width:160px;margin-top:10px;">
         <?php echo $this->_tpl_vars['lang']['search_keyword']; ?>
<br />
         <form method="get" action="/index.php">
            <input type="hidden" name="c" value="event" />
            <input type="hidden" name="a" value="search" />
            <input type="text" name="what" onblur="if(this.value=='') this.value='<?php echo $this->_tpl_vars['lang']['search']; ?>
';" onfocus="if(this.value=='<?php echo $this->_tpl_vars['lang']['search']; ?>
') this.value='';" value="<?php echo $this->_tpl_vars['lang']['search']; ?>
" />
         </form>
      </div>
      <div style="clear:both; padding-top:10px;">
      <?php if ($this->_tpl_vars['action'] == 'inforss'): ?>
                                    <h2><?php echo $this->_tpl_vars['lang']['what_is_rss']; ?>
</h2>
      <p><?php echo $this->_tpl_vars['lang']['rss_description']; ?>
</h2>
      <p><?php echo $this->_tpl_vars['lang']['rss_directory']; ?>
</p>
      <ul>
         <?php $_from = $this->_tpl_vars['regions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['region']):
?>
         <li><a href="/index.php?c=event&amp;a=rss&amp;region=<?php echo $this->_tpl_vars['region']->getId(); ?>
"><?php echo $this->_tpl_vars['region']->getName(); ?>
</a></li>
         <?php endforeach; endif; unset($_from); ?>
      </ul>

      <?php elseif ($this->_tpl_vars['action'] == 'index' || $this->_tpl_vars['action'] == 'search'): ?>

                              
         <h2><?php echo $this->_tpl_vars['lang']['next_events']; ?>
</h2>
         <?php if ($this->_tpl_vars['events']): ?>
         <?php $_from = $this->_tpl_vars['events']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['event']):
?>
         <div style="border:1px solid black; padding:10px;margin-top:10px;">
            <?php echo $this->_tpl_vars['event']->getCategory(); ?>
<br />
            <h3><a href="index.php?c=event&amp;a=show&amp;id=<?php echo $this->_tpl_vars['event']->getId(); ?>
"><?php echo $this->_tpl_vars['event']->getName(); ?>
</a></h3>
            <?php echo $this->_tpl_vars['lang']['when']; ?>

            <?php if ($this->_tpl_vars['event']->getDateEnd() != $this->_tpl_vars['event']->getDateStart()): ?>
               Del <?php echo $this->_tpl_vars['event']->getDateStart(); ?>
 al <?php echo $this->_tpl_vars['event']->getDateEnd(); ?>

            <?php else: ?>
               El <?php echo $this->_tpl_vars['event']->getDateStart(); ?>

            <?php endif; ?>
            <br />
            <?php echo $this->_tpl_vars['lang']['where']; ?>
 <?php echo $this->_tpl_vars['event']->getCity(); ?>
<br />
            <?php echo $this->_tpl_vars['lang']['promote']; ?>
 <?php echo $this->_tpl_vars['event']->getPromoter(); ?>
 <br />
            <?php $this->assign('event_user', $this->_tpl_vars['event']->getUser()); ?>
            <?php echo $this->_tpl_vars['lang']['inserted_by']; ?>
 <a href="/index.php?c=user&amp;a=show&amp;id=<?php echo $this->_tpl_vars['event_user']->getId(); ?>
"><?php echo $this->_tpl_vars['event_user']; ?>
 <?php if ($this->_tpl_vars['event_user']->getAvatar()): ?><img src="/z-content/img/avatars/<?php echo $this->_tpl_vars['event_user']->getId(); ?>
.jpg" alt="<?php echo $this->_tpl_vars['event_user']; ?>
"/><?php endif; ?></a><br />
            <a href="/index.php?c=event&amp;a=show&amp;id=<?php echo $this->_tpl_vars['event']->getId(); ?>
"><?php echo $this->_tpl_vars['lang']['more_info']; ?>
</a><br />
            <?php echo $this->_tpl_vars['lang']['comments_on_event']; ?>
: (<a href="index.php?c=event&amp;a=show&amp;id=<?php echo $this->_tpl_vars['event']->getId(); ?>
#comments"><?php echo $this->_tpl_vars['event']->getNumComments(); ?>
</a>)<br />
         </div>
         <?php endforeach; endif; unset($_from); ?>
         <?php $_from = $this->_tpl_vars['pagination']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['num'] => $this->_tpl_vars['link']):
?>
         <?php if ($this->_tpl_vars['page'] != $this->_tpl_vars['num']): ?>
         <a href="<?php echo $this->_tpl_vars['link']; ?>
"><?php echo $this->_tpl_vars['num']; ?>
</a>
         <?php else: ?>
         <?php echo $this->_tpl_vars['num']; ?>

         <?php endif; ?>
         <?php endforeach; endif; unset($_from); ?>
         <?php endif; ?>

      <?php elseif ($this->_tpl_vars['action'] == 'show'): ?>
                              
      <div style="border:1px solid black;padding:5px;">
         Categoria <?php echo $this->_tpl_vars['event']->getCategory(); ?>
<br />
         <h2><?php echo $this->_tpl_vars['event']->getName(); ?>
</h2>
         <?php echo $this->_tpl_vars['event']->getDescription(); ?>
<br />
         <?php echo $this->_tpl_vars['lang']['where_2']; ?>
: <?php echo $this->_tpl_vars['event']->getPlace(); ?>
 <?php echo $this->_tpl_vars['event']->getAddress(); ?>
 <?php echo $this->_tpl_vars['event']->getCity(); ?>
<br />
         <?php echo $this->_tpl_vars['lang']['when_2']; ?>
:
         <?php if ($this->_tpl_vars['event']->getDateEnd() != $this->_tpl_vars['event']->getDateStart()): ?>
            <?php echo $this->_tpl_vars['lang']['from']; ?>
 <?php echo $this->_tpl_vars['event']->getDateStart(); ?>
 <?php echo $this->_tpl_vars['lang']['to']; ?>
 <?php echo $this->_tpl_vars['event']->getDateEnd(); ?>

         <?php else: ?>
            <?php echo $this->_tpl_vars['lang']['on']; ?>
 <?php echo $this->_tpl_vars['event']->getDateStart(); ?>

         <?php endif; ?>
         <br />
         <?php if ($this->_tpl_vars['event']->getDateDetails()): ?>
            <?php echo $this->_tpl_vars['event']->getDateDetails(); ?>
<br />
         <?php endif; ?>
         <?php if ($this->_tpl_vars['event']->getTime()): ?>
            <?php echo $this->_tpl_vars['event']->getTime(); ?>
<br />
         <?php endif; ?>
         <?php if ($this->_tpl_vars['event']->getPromoter()): ?>
            <?php echo $this->_tpl_vars['lang']['promoter']; ?>
: <?php echo $this->_tpl_vars['event']->getPromoter(); ?>
<br />
         <?php endif; ?>
         <?php if ($this->_tpl_vars['event']->getCost()): ?>
            <?php echo $this->_tpl_vars['lang']['cost']; ?>
: <?php echo $this->_tpl_vars['event']->getCost(); ?>
<br />
         <?php endif; ?>
         <?php if ($this->_tpl_vars['event']->geturl()): ?>
            <?php echo $this->_tpl_vars['lang']['website']; ?>
: <?php echo $this->_tpl_vars['event']->getUrl(); ?>
<br />
         <?php endif; ?>
         <?php if ($this->_tpl_vars['event']->getPhone()): ?>
            <?php echo $this->_tpl_vars['lang']['phone']; ?>
: <?php echo $this->_tpl_vars['event']->getPhone(); ?>
<br />
         <?php endif; ?>
         <?php if ($this->_tpl_vars['event']->getAforo()): ?>
            <?php echo $this->_tpl_vars['lang']['aforo']; ?>
: <?php echo $this->_tpl_vars['event']->getAforo(); ?>
<br />
         <?php endif; ?>
         <?php if ($this->_tpl_vars['event']->getTags()): ?>
            <?php echo $this->_tpl_vars['lang']['about']; ?>
: <?php echo $this->_tpl_vars['event']->getTags(); ?>
<br />
         <?php endif; ?>
         <?php $this->assign('event_user', $this->_tpl_vars['event']->getUser()); ?>
         <?php echo $this->_tpl_vars['lang']['inserted_by']; ?>
: <a href="/index.php?c=user&amp;a=show&amp;id=<?php echo $this->_tpl_vars['event_user']->getId(); ?>
"><?php echo $this->_tpl_vars['event_user']; ?>
 <?php if ($this->_tpl_vars['event_user']->getAvatar()): ?><img src="/z-content/img/avatars/<?php echo $this->_tpl_vars['event_user']->getId(); ?>
.jpg" alt="<?php echo $this->_tpl_vars['event_user']; ?>
"/><?php endif; ?></a><br />
      </div>

      <?php echo '
      <script type="text/javascript">
         function showShare() {
            document.getElementById(\'share\').style.display=\'block\';
            var share_link = document.getElementById(\'share_link\');
            share_link.style.paddingBottom = \'11px\';
            share_link.style.borderBottom = \'0px\';
         }
      </script>
      '; ?>


      <ul style="list-style:none;padding-left:0px;margin-bottom:10px;">
         <li style="display:inline;border:1px solid black;padding:5px;background-color:#FFF;"><a href="javascript:self.print()"><?php echo $this->_tpl_vars['lang']['print']; ?>
</a></li>
         <li style="display:inline;border:1px solid black;padding:5px;background-color:#FFF;" onclick="showShare();" id="share_link"><a href="#share_link"><?php echo $this->_tpl_vars['lang']['share']; ?>
</a></li>
         <li style="display:inline;border:1px solid black;padding:5px;background-color:#FFF;"><a href="/index.php?c=event&amp;a=abuse&amp;id=<?php echo $this->_tpl_vars['event']->getId(); ?>
"><?php echo $this->_tpl_vars['lang']['abuse']; ?>
</a></li>
         <?php if ($this->_tpl_vars['user']->getLevel() == 'admin'): ?>
         <li style="display:inline;border:1px solid black;padding:5px;background-color:#FFF;"><a href="/index.php?c=event&amp;a=edit&amp;id=<?php echo $this->_tpl_vars['event']->getId(); ?>
"><?php echo $this->_tpl_vars['lang']['edit']; ?>
</a></li>
         <?php endif; ?>
      </ul>
      <form id="share" style="border:1px solid black;padding:5px;display:none;z-index=-1" method="post" action="/index.php?c=event&amp;a=share&amp;id=<?php echo $this->_tpl_vars['event']->getId(); ?>
">
         De <input type="text" value="" name="from" /><br />
         Para <input type="text" value="" name="to" /><br />
         Mensaje <textarea name="message"></textarea><br />
         <input type="submit" value="<?php echo $this->_tpl_vars['lang']['send']; ?>
"></submit>
      </form>
      <h2><a href="#comments"><?php echo $this->_tpl_vars['lang']['add_comment']; ?>
</a></h2>
      Comentarios: <?php echo $this->_tpl_vars['event']->getNumComments(); ?>
<br />
      <div id="comments">
         <?php $_from = $this->_tpl_vars['event']->getComments(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['comment']):
?>
         <div style="border:1px solid black;margin-top:10px;padding:5px;">
            <?php echo $this->_tpl_vars['comment']->getDatePost(); ?>

            <?php echo $this->_tpl_vars['comment']->getText(); ?>

            <?php $this->assign('comment_user', $this->_tpl_vars['comment']->getUser()); ?>
            <p style="text-align:right;"><a href="/index.php?c=user&amp;a=show&amp;id=<?php echo $this->_tpl_vars['comment_user']->getId(); ?>
"><?php echo $this->_tpl_vars['comment_user']; ?>
 <?php if ($this->_tpl_vars['comment_user']->getAvatar()): ?><img src="/z-content/img/avatars/<?php echo $this->_tpl_vars['comment_user']->getId(); ?>
.jpg" alt="<?php echo $this->_tpl_vars['comment_user']; ?>
"/><?php endif; ?></a></p>
            <?php if ($this->_tpl_vars['user']->getLevel() == admin): ?>
            <?php echo '
            <SCRIPT language="JavaScript">
            <!--
            function del_comment(id)
            {
               '; ?>

               var val = confirm("<?php echo $this->_tpl_vars['lang']['confirm_del_comment']; ?>
");
               <?php echo '
               if (val) {
                  window.location="/index.php?c=event&a=commentdel&id="+id;
               }
            }
            //-->
            </SCRIPT>
            '; ?>

            <a href="javascript:del_comment(<?php echo $this->_tpl_vars['comment']->getId(); ?>
)"><?php echo $this->_tpl_vars['lang']['delete']; ?>
</a>
            <a href="/index.php?c=event&amp;a=commentedit&amp;id=<?php echo $this->_tpl_vars['comment']->getId(); ?>
"><?php echo $this->_tpl_vars['lang']['edit']; ?>
</a>
            <?php endif; ?>
         </div>
         <?php endforeach; endif; unset($_from); ?>
      </div>

      <p><?php echo $this->_tpl_vars['lang']['want_to_comment']; ?>
 <?php echo $this->_tpl_vars['lang']['comment_advise']; ?>
</p>
      <form method="post" action="/index.php?c=event&amp;a=commentAdd&amp;id=<?php echo $this->_tpl_vars['event']->getId(); ?>
">
         <textarea name="comment"></textarea><br />
         <button type="send"><?php echo $this->_tpl_vars['lang']['send']; ?>
</button>
      </form>
      <?php endif; ?>
         <div style="text-align:right">
            <a href="http://zoowa.net/"><?php echo $this->_tpl_vars['lang']['powered_by_zoowa']; ?>
</a>
         </div>
      </div>

      <?php elseif ($this->_tpl_vars['action'] == 'create' || $this->_tpl_vars['action'] == 'edit'): ?>
                                    <?php echo '
      <script type="text/javascript">
         var AjaxZoowa=function(params,handler) {
            var xmlHttp;
            var url = "index.php?c=ajax&a=";
            try{
               xmlHttp=new XMLHttpRequest();
            } catch(e) {
               try{
                  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
               } catch(e) {
                  try {
                     xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
                  } catch(e) {
                     alert("Your browser does not support AJAX!");
                     return false;
                  }
               }
            }
            xmlHttp.onreadystatechange = function(){
               if(xmlHttp.readyState==4){
                  handler(xmlHttp);
               }
            }
            xmlHttp.open("GET",url+params,true);
            xmlHttp.send(null);
         };


         function showRegion() {
            var val=document.getElementById("country").value;
            document.getElementById("region").style.display="none";
            var handler = function(transport) {
               var regTags=transport.responseXML.getElementsByTagName(\'region\');
               document.getElementById("region").options.length=0;
               if (regTags.length > 0) {
                  for(var i=0;i<regTags.length;i++) {
                     var reg_name=regTags[i].getAttribute(\'name\');
                     var reg_id=regTags[i].getAttribute(\'id\');
                     document.getElementById("region").options[i] = new Option(reg_name,reg_id);
                  }
                  document.getElementById(\'region\').style.display="inline";
               }
            }
            var params="regions&country="+val;
            AjaxZoowa(params,handler);
         }

         function showCity() {
            var val=document.getElementById("region").value;
            document.getElementById("city").style.display="none";
            var handler = function(transport) {
               var cityTags=transport.responseXML.getElementsByTagName(\'city\');
               document.getElementById("city").options.length=0;
               for(var i=0;i<cityTags.length;i++) {
                  var city_name=cityTags[i].getAttribute(\'name\');
                  var city_id=cityTags[i].getAttribute(\'id\');
                  document.getElementById("city").options[i] = new Option(city_name,city_id);
               }
               document.getElementById(\'city\').style.display="inline";
            }
            var params="cities&region="+val;
            AjaxZoowa(params,handler);
         }
      </script>'; ?>

      <?php if ($this->_tpl_vars['action'] == 'create'): ?>
      <h2><?php echo $this->_tpl_vars['lang']['event_create']; ?>
</h2>
      <?php else: ?>
      <h2><?php echo $this->_tpl_vars['lang']['event_edit']; ?>
</h2>
      <?php endif; ?>

      <?php if ($this->_tpl_vars['error']): ?>
      <ul>
         <?php $_from = $this->_tpl_vars['error']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['err']):
?>
         <li><?php echo $this->_tpl_vars['err']; ?>
</li>
         <?php endforeach; endif; unset($_from); ?>
      </ul>
      <?php endif; ?>

      <form <?php if ($this->_tpl_vars['action'] == 'create'): ?> action="?c=event&amp;a=add"<?php else: ?> action="?c=event&amp;a=edit&amp;id=<?php echo $this->_tpl_vars['id']; ?>
" <?php endif; ?> method="post">
         <h4><label><?php echo $this->_tpl_vars['lang']['title']; ?>
</label></h4>
         <p><?php echo $this->_tpl_vars['lang']['title_suggest']; ?>
</p>
         <input type="text" name="name" value="<?php echo $this->_tpl_vars['name']; ?>
" maxlength="90" />

         <h4><label><?php echo $this->_tpl_vars['lang']['category']; ?>
</label></h4>
         <select name="category" size="8">
            <?php $_from = $this->_tpl_vars['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['cat']):
?>
            <option value="<?php echo $this->_tpl_vars['cat']->getId(); ?>
" <?php if ($this->_tpl_vars['category'] == $this->_tpl_vars['cat']->getId()): ?>selected="selected"<?php endif; ?> ><?php echo $this->_tpl_vars['cat']->getName(); ?>
</option>
            <?php endforeach; endif; unset($_from); ?>
         </select>


         <h4><label><?php echo $this->_tpl_vars['lang']['cost']; ?>
</label></h4>
         <p><?php echo $this->_tpl_vars['lang']['cost_suggest']; ?>
</p>
         <input type="text" name="cost" value="<?php echo $this->_tpl_vars['cost']; ?>
"  maxlength="128" />

         <h4><label><?php echo $this->_tpl_vars['lang']['aforo']; ?>
</label></h4>
         <p><?php echo $this->_tpl_vars['lang']['aforo_suggest']; ?>
</p>
         <input type="radio" name="aforo" value="limited" onchange="document.getElementById('num_aforo').style.display='inline'" <?php if ($this->_tpl_vars['aforo'] == 'limited'): ?> checked="checked" <?php endif; ?>><?php echo $this->_tpl_vars['lang']['limited']; ?>
</input>
         <input id="num_aforo" <?php if ($this->_tpl_vars['aforo'] != 'limited'): ?> style="display:none;" <?php endif; ?> type="text" name="num_aforo" value="<?php echo $this->_tpl_vars['num_aforo']; ?>
" /><br />
         <input type="radio" name="aforo" value="unlimited" onchange="document.getElementById('num_aforo').style.display='none'" <?php if ($this->_tpl_vars['aforo'] == 'unlimited'): ?> checked="checked" <?php endif; ?>><?php echo $this->_tpl_vars['lang']['unlimited']; ?>
</input><br />
         <input type="radio" name="aforo" value="unknown" onchange="document.getElementById('num_aforo').style.display='none'" <?php if ($this->_tpl_vars['aforo'] == 'unknown' || ! $this->_tpl_vars['aforo']): ?> checked="checked" <?php endif; ?>><?php echo $this->_tpl_vars['lang']['unknown']; ?>
</input><br />

         <h4><label><?php echo $this->_tpl_vars['lang']['description']; ?>
</label></h4>
         <textarea name="description"><?php echo $this->_tpl_vars['description']; ?>
</textarea>

         <h4><label><?php echo $this->_tpl_vars['lang']['promoter']; ?>
</label></h4>
         <input type="text" name="promoter" value="<?php echo $this->_tpl_vars['promoter']; ?>
"  maxlength="128" />

         <h4><label><?php echo $this->_tpl_vars['lang']['date_start']; ?>
</label></h4>
         <?php echo smarty_function_html_select_date(array('prefix' => 'date_start_','end_year' => "+1",'field_order' => 'DMY','month_format' => "%m",'time' => ($this->_tpl_vars['date_start'])), $this);?>

         <h4><label><?php echo $this->_tpl_vars['lang']['moreaday']; ?>
</label></h4>
         <p><?php echo $this->_tpl_vars['lang']['moreaday_suggest']; ?>
</p>
         <input type="radio" name="moreaday" value="yes" onclick="document.getElementById('date_end').style.display='block';" <?php if ($this->_tpl_vars['moreaday'] == 'yes'): ?> checked="checked" <?php endif; ?>><?php echo $this->_tpl_vars['lang']['yes']; ?>
</input><br />
         <input type="radio" name="moreaday" value="no" onclick="document.getElementById('date_end').style.display='none';" <?php if ($this->_tpl_vars['moreaday'] != 'yes'): ?> checked="checked" <?php endif; ?>><?php echo $this->_tpl_vars['lang']['no']; ?>
</input>

         <div <?php if ($this->_tpl_vars['moreaday'] != 'yes'): ?> style="display:none;" <?php endif; ?> id="date_end">
         <h4><label><?php echo $this->_tpl_vars['lang']['date_end']; ?>
</label></h4>
         <?php echo smarty_function_html_select_date(array('prefix' => 'date_end_','end_year' => "+1",'field_order' => 'DMY','month_format' => "%m",'time' => ($this->_tpl_vars['date_end'])), $this);?>

         </div>

         <h4><label><?php echo $this->_tpl_vars['lang']['date_details']; ?>
</label></h4>
         <p><?php echo $this->_tpl_vars['lang']['date_details_suggest']; ?>
</p>
         <input type="text" name="date_details" value="<?php echo $this->_tpl_vars['date_details']; ?>
" maxlength="128" />

         <h4><label><?php echo $this->_tpl_vars['lang']['time']; ?>
</label></h4>
         <p><?php echo $this->_tpl_vars['lang']['time_suggest']; ?>
</p>
         <input type="text" name="time" value="<?php echo $this->_tpl_vars['time']; ?>
" maxlength="128" />

         <h4><label><?php echo $this->_tpl_vars['lang']['town']; ?>
</label></h4>
         <p><?php echo $this->_tpl_vars['lang']['town_suggest']; ?>
</p>
         <select name="country" size="8" id="country" onchange="showRegion();">
            <?php $_from = $this->_tpl_vars['countries']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['tmp_country']):
?>
            <option value="<?php echo $this->_tpl_vars['tmp_country']->getId(); ?>
" <?php if ($this->_tpl_vars['country'] == $this->_tpl_vars['tmp_country']->getId()): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['tmp_country']->getName(); ?>
</option>
            <?php endforeach; endif; unset($_from); ?>
         </select>
         <select name="region" size="8" id="region" <?php if (! $this->_tpl_vars['regions']): ?> style="display:none;" <?php endif; ?> onchange="showCity();">
            <?php if ($this->_tpl_vars['regions']): ?>
            <?php $_from = $this->_tpl_vars['regions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['tmp_region']):
?>
            <option value="<?php echo $this->_tpl_vars['tmp_region']->getId(); ?>
" <?php if ($this->_tpl_vars['region'] == $this->_tpl_vars['tmp_region']->getId()): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['tmp_region']->getName(); ?>
</option>
            <?php endforeach; endif; unset($_from); ?>
            <?php endif; ?>
         </select>
         <select name="city" size="8" id="city" <?php if (! $this->_tpl_vars['cities']): ?> style="display:none;" <?php endif; ?> >
            <?php if ($this->_tpl_vars['cities']): ?>
            <?php $_from = $this->_tpl_vars['cities']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['tmp_city']):
?>
            <option value="<?php echo $this->_tpl_vars['tmp_city']->getId(); ?>
" <?php if ($this->_tpl_vars['city'] == $this->_tpl_vars['tmp_city']->getId()): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['tmp_city']->getName(); ?>
</option>
            <?php endforeach; endif; unset($_from); ?>
            <?php endif; ?>
         </select>

         <h4><label><?php echo $this->_tpl_vars['lang']['address']; ?>
</label></h4>
         <p><?php echo $this->_tpl_vars['lang']['address_suggest']; ?>
</p>
         <input type="text" name="address" value="<?php echo $this->_tpl_vars['address']; ?>
" maxlength="128" />

         <h4><label><?php echo $this->_tpl_vars['lang']['place']; ?>
</label></h4>
         <p><?php echo $this->_tpl_vars['lang']['place_suggest']; ?>
</p>
         <input type="text" name="place" value="<?php echo $this->_tpl_vars['place']; ?>
" maxlength="150" />

         <h4><label><?php echo $this->_tpl_vars['lang']['website']; ?>
</label></h4>
         <p><?php echo $this->_tpl_vars['lang']['website_suggest']; ?>
</p>
         <input type="text" name="url" value="<?php echo $this->_tpl_vars['url']; ?>
" maxlength="256" />

         <h4><label><?php echo $this->_tpl_vars['lang']['phone']; ?>
</label></h4>
         <p><?php echo $this->_tpl_vars['lang']['phone_suggest']; ?>
</p>
         <input type="text" name="phone" value="<?php echo $this->_tpl_vars['phone']; ?>
" maxlength="13" />

         <h4><label><?php echo $this->_tpl_vars['lang']['tags']; ?>
</label></h4>
         <p><?php echo $this->_tpl_vars['lang']['tags_suggest']; ?>
</p>
         <input type="text" name="tags" value="<?php echo $this->_tpl_vars['tags']; ?>
" maxlength="128" />

         <br />
         <button type="submit"><?php echo $this->_tpl_vars['lang']['send']; ?>
</button>
      </form>
      <?php elseif ($this->_tpl_vars['action'] == 'commentedit'): ?>
         <form method="post" action="/index.php?c=event&amp;a=commentupdate&amp;id=<?php echo $this->_tpl_vars['comment']->getId(); ?>
">
            <textarea name="text"><?php echo $this->_tpl_vars['comment']->getText(); ?>
</textarea><br />
            <button type="submit"><?php echo $this->_tpl_vars['lang']['send']; ?>
</button>
         </form>
      <?php endif; ?>